/*
 * cportage.cpp
 *
 *  Created on: Apr 1, 2013
 *      Author: kelvan
 */

#include "cportage.h"

CPortage::CPortage(void):strMakeFile("\\etc\\make.conf"){


}

std::string CPortage::GetPORTDIR(void){

	std::string dir = "\\usr\\portage"; //默认的portage安装目录

	char buffer[256];
	std::ifstream make_conf_file("\\etc\\make.conf");

	if (!make_conf_file.is_open())
		std::cout << "Error opening file" << std::endl;
	else
		std::cout << "Open file" << std::endl;


	return dir;
}

void CPortage::PrintOut(void){


	std::cout << this->GetPORTDIR() << std::endl;

}
